package org.beetl.sql.springboot.mapper;


import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.beetl.sql.mapper.annotation.Template;
import org.beetl.sql.springboot.entity.OrderLog;

import java.util.List;

/**
 */
@SqlResource("orderLog")
public interface OrderLogMapper extends BaseMapper<OrderLog> {
	List<OrderLog> select(String name);

	/**
	 * tenantId 被ParaExtend赋值，参考DatasourceConfig.mySQLManagerCustomize
	 * @return
	 */
	@Template("select * from order_log where tenant_id=#{tenantId}")
	List<OrderLog> all();

}
